package com.cu.simpleerp.system.service;

import com.cu.simpleerp.system.dao.MenuInfoMapper;
import com.cu.simpleerp.system.dto.MenuDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author jintian
 * @date 2018/11/1 12:03
 */
@Service
public class SystemService {

    @Autowired
    private MenuInfoMapper menuInfoMapper;


    /**
     * 根据用户id查询用户的目录列表
     * @param id
     * @return
     */
    public List<MenuDto> getMenu(Integer id) {
        return menuInfoMapper.selectByUserId(id);
    }
}
